package com.pratices;

import com.pratices.mvc.bean.MarketRegion;
import com.pratices.mvc.mapper.MarketRegionMapper;
import com.pratices.requestAndResponse.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class Demo1 {
    static MarketRegionMapper marketRegionMapper;
    static {
        SqlSession sqlConnection = MybatisUtils.getSqlConnection();
         marketRegionMapper = sqlConnection.getMapper(MarketRegionMapper.class);
    }
    @Test
    public void test1() {
        List<MarketRegion> marketRegions = marketRegionMapper.selectByPid(0);
        String string = marketRegions.toString();
        System.out.println(string);
    }
}
